<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'tab.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<script src="js/date.js" type="text/javascript"></script>
		<SCRIPT src="js/jquery.js" type="text/javascript"></SCRIPT>
		<SCRIPT src="js/color.js" type="text/javascript"></SCRIPT>
		<script type="text/javascript">
			function showfacname(){
				$("#facname").val($("#kb").val());
			}
			function show(){
				if($("#lx").val() == 1){
					$("#zybl").slideUp("slow");
					$("#inhisbl").slideUp("slow");
					$("#mzbl").slideDown("slow");
				}
				if($("#lx").val() == 2){
					$("#mzbl").slideUp("slow");
					$("#zybl").slideUp("slow");
					$("#inhisbl").slideDown("slow");
				}
				if($("#lx").val() == 3){
					$("#mzbl").slideUp("slow");
					$("#inhisbl").slideUp("slow");
					$("#zybl").slideDown("slow");
				}
			}
		</script>
		<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

.STYLE1 {
	font-size: 12px
}
#dlb{
display: none;
}

#mzbl{
display: none;
}
#inhisbl{
display: none;
}
#zybl{
display: none;
}
.STYLE3 {
	font-size: 12px;
	font-weight: bold;
}

.STYLE4 {
	color: #03515d;
	font-size: 12px;
}
-->
</style>

	
	</head>
	<body>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="30" background="backstage/tab/images//tab_05.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="12" height="30">
								<img src="backstage/tab/images//tab_03.gif" width="12" height="30" />
							</td>
							<td>
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="46%" valign="middle">
											<table width="100%" border="0" cellspacing="0"
												cellpadding="0">
												<tr>
													<td width="5%">
														<div align="center">
															<img src="backstage/tab/images//tb.gif" width="16" height="16" />
														</div>
													</td>
													<td width="95%" class="STYLE1">
														<span class="STYLE3">你当前的位置</span>：[业务中心]-[用户病例]
													</td>
												</tr>
											</table>
										</td>
										<td width="54%">
											<table border="0" align="right" cellpadding="0"
												cellspacing="0">
												<tr>
													<td width="60">
														<table width="87%" border="0" cellpadding="0"
															cellspacing="0">
															<tr>
															</tr>
														</table>
													</td>
													<td width="60">
														<table width="90%" border="0" cellpadding="0"
															cellspacing="0">
															<tr>
															</tr>
														</table>
													</td>
													<td width="60">
														<table width="90%" border="0" cellpadding="0"
															cellspacing="0">
															<tr>
															</tr>
														</table>
													</td>
													<td width="52">
														<table width="88%" border="0" cellpadding="0"
															cellspacing="0">
															<tr>
															</tr>
														</table>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
							<td width="16">
								<img src="backstage/tab/images//tab_07.gif" width="16" height="30" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<div>
					</div>
						<tr>
							<td width="8" background="backstage/tab/images//tab_12.gif">
								&nbsp;
							</td>
							<td>
							<c:if test="${message != null}">
								<table width="100%">
									<tr style="background-color: #87CEFF">
										<td align="center" valign="center" height="30">
											<div>${message}</div>
										</td>
									</tr>
								</table>
							</c:if>
								<table width="100%" border="0" cellpadding="0" cellspacing="1"
									bgcolor="b5d6e6" onmouseover="changeto()" onmouseout="changeback()" id="allUser">
									<tr>
										<td width="10%" height="22" background="backstage/tab/images//bg.gif"
											bgcolor="#FFFFFF">
											<div align="center">
												<span class="STYLE1">用户姓名</span>
											</div>
										</td>
										<td width="10%" height="22" background="backstage/tab/images//bg.gif"
											bgcolor="#FFFFFF">
											<div align="center">
												<span class="STYLE1">性别</span>
											</div>
										</td>
										<td width="8%" background="backstage/tab/images//bg.gif" bgcolor="#FFFFFF">
											<div align="center">
												<span class="STYLE1">年龄</span>
											</div>
										</td>
										<td width="12%" height="22" background="backstage/tab/images//bg.gif"
											bgcolor="#FFFFFF">
											<div align="center">
												<span class="STYLE1">出生地址</span>
											</div>
										</td>
										<td width="10%" height="22" background="backstage/tab/images//bg.gif"
											bgcolor="#FFFFFF">
											<div align="center">
												<span class="STYLE1">电子邮件</span>
											</div>
										</td>
										<td width="10%" height="22" background="backstage/tab/images//bg.gif"
											bgcolor="#FFFFFF">
											<div align="center">
												<span class="STYLE1">联系电话</span>
											</div>
										</td>
										<td width="15%" height="22" background="backstage/tab/images//bg.gif"
											bgcolor="#FFFFFF" class="STYLE1">
											<div align="center">
												基本操作
											</div>
										</td>
									</tr>
									<c:forEach items="${allUser}" var="user">
									<tr>
										<td height="20" bgcolor="#FFFFFF">
											<div align="center">
												<span class="STYLE1">${user.uname }</span>
											</div>
										</td>
										<td height="20" bgcolor="#FFFFFF">
											<div align="center">
												<span class="STYLE1">${user.sex } </span>
											</div>
										</td>
										<td bgcolor="#FFFFFF">
											<div align="center">
												<span class="STYLE1">${user.ubirth }</span>
											</div>
										</td>
										<td height="20" bgcolor="#FFFFFF">
											<div align="center">
												<span class="STYLE1">${user.uaddress }</span>
											</div>
										</td>
										<td height="20" bgcolor="#FFFFFF">
											<div align="center">
												<span class="STYLE1">${user.uemail }</span>
											</div>
										</td>
										<td height="20" bgcolor="#FFFFFF">
											<div align="center">
												<span class="STYLE1">${user.uphone }</span>
											</div>
										</td>
										<td height="20" bgcolor="#FFFFFF">
											<div align="center">
												<span class="STYLE4"><a href="disease.do?method=allDisease&uid=${user.uid}&admin=wel"/>查看病历</a>&nbsp; &nbsp;
												<a href="disease.do?method=addbinli&uid=${user.uid}"/>添加病例</a>&nbsp; &nbsp;
												
												<a href="user.do?method=deleteUser&uid=${user.uid}" onclick="return confirm('确定删除该用户？');"/>删除</a></span>
											</div>
										</td>
									</tr>
									</c:forEach>
								</table>
							</td>
							<td width="8" background="backstage/tab/backstage/tab/images///tab_15.gif">
								&nbsp;
							</td>
						</tr>
					</table>
			</tr>
			<tr>
				<td height="35" background="backstage/tab/backstage/tab/images///tab_19.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="12" height="35">
								<img src="backstage/tab/images/tab_18.gif" width="12" height="35" />
							</td>
							<td>
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td class="STYLE4">
											&nbsp;&nbsp;共有 ${rowCount} 条记录，当前第 ${current}/${pageCount} 页
										</td>
										<td>
										<form action="user.do?method=allUser" method="post">
											<table border="0" align="right" cellpadding="0"
												cellspacing="0">
												<tr>
													<td width="40">
													<a href="user.do?method=allUser&current=1">
														<img src="backstage/tab/images/first.gif" width="37" height="15" border="0"/>
														</a>
													</td>
													<td width="45">
													<a href="user.do?method=allUser&current=${current-1}">
														<img src="backstage/tab/images/back.gif" width="43" height="15" border="0"/>
														</a>
													</td>
													<td width="45">
													<a href="user.do?method=allUser&current=${current+1}">
														<img src="backstage/tab/images/next.gif" width="43" height="15" border="0"/>
														</a>
													</td>
													<td width="40">
													<a href="user.do?method=allUser&current=${pageCount}">
														<img src="backstage/tab/images/last.gif" width="37" height="15" border="0"/>
														</a>
													</td>
													
													<td width="100">
														<div align="center">
															<span class="STYLE1">转到第 <input name="current"
																	type="text" size="4"
																	onkeypress="if ((event.keyCode<48 || event.keyCode>57)) {event.returnValue=false};
															if(this.value.length > 4){this.value = 10000}"
																	style="height: 12px; width: 20px; border: 1px solid #999999;" />
																页 </span>
														</div>
													</td>
													<td width="40">
														<img src="backstage/tab/images/go.gif" width="37" height="15" onclick="submit()"/>
													</td>
												</tr>
											</table>
											</form>
										</td>
									</tr>
								</table>
							</td>
							<td width="16">
								<img src="backstage/tab/images/tab_20.gif" width="16" height="35" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</body>
</html>
